package com.woniuxy.oa.entity;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: Mr X
 * @Date: 2019/12/02/15:19
 * @Description:
 */
@Data
public class ResponseVO<T> {
    public ResponseVO() {

    }

    public static final ResponseVO SUC = new ResponseVO("200", "操作成功！");
    public static final ResponseVO ERORR = new ResponseVO("500", "操作失败！");

    public ResponseVO(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ResponseVO(String code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    private String code;
    private String msg;
    private T data;
}
